package com.pinusmusic.service;

import com.pinusmusic.domain.PageBean;
import com.pinusmusic.domain.Singer;
import com.pinusmusic.domain.User;

import java.util.List;

public interface UserService {

    //2.0lwj
    User findUserByUid(int uid);

    boolean findUserByUsernameAndUserpassword(String username, String userpassword);

    boolean findUserByUsername(String username);

    void insertUser(User user);

    void updateInformation(User user);

    Boolean sendEmail(String name,String email);

    Boolean compareCode(String code, String email);

    Boolean  newPwd(String newPwd,String email);

    void sendVipByEmail(User user);

    boolean active(String vipcode);

    List<User> findUserByName(String username);

    PageBean<User> findUsersByName(int currentPage, int rows, String name);

    User findUserById(Integer uid);
}
